package com.zy.drug.pojo;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.zy.drug.converters.BigDecimalConverter;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @TableName t_drug_info
 */
//@TableName(value ="t_drug_info")
@Data
public class DrugInfoExcelVo implements Serializable {
    /**
     * 主键-自增id
     */
   // @TableId
    @ExcelIgnore
    private Integer id;

    /**
     * 拼音
     */
    @ExcelProperty(index = 1,value = "编码")
    private String pinyin;

    /**
     * 药品名称
     */
    @ExcelProperty(index = 2,value = "药品名称")
    private String drugName;

    /**
     * 规格
     */
    @ExcelProperty(index = 4,value = "规格")
    private String specs;

    /**
     * 单位
     */
    @ExcelProperty(index = 9,value = "单位")
    private String unit;

    /**
     * 数量
     */
    //@ExcelProperty(index = 9,value = "数量")
            @ExcelIgnore
    private Integer num;

    /**
     * 价格
     */
    @ExcelIgnore
    private BigDecimal price;

    /**
     * 备注
     */
    @ExcelProperty(index = 10,value = "备注")
    private String remarks;

    /**
     * 作用
     */
    @ExcelProperty(index = 12,value = "作用")
    private String functions;

    /**
     * 产地
     */
    @ExcelProperty(index = 3,value = "产地")
    private String origin;

    /**
     * 类型
     */
    @ExcelProperty(index = 11,value = "类型")
    private String type;

    /**
     * 毒性
     */
    @ExcelProperty(index = 13,value = "毒性")
    private String toxicity;

    /**
     * 等级
     */
    @ExcelProperty(index = 5,value = "等级")
    private String degree;

    /**
     * 公斤价
     */
    @ExcelProperty(index = 6,value = "公斤价",converter = BigDecimalConverter.class)
    private BigDecimal kilogramPrice;

    /**
     * 单斤价
     */
    @ExcelProperty(index = 7,value = "单斤价",converter = BigDecimalConverter.class)
    private BigDecimal pricePerKilogram;

    /**
     * 克价
     */
    @ExcelProperty(index = 8,value = "克价",converter = BigDecimalConverter.class)
    private BigDecimal pricePerGram;
    @ExcelIgnore
    private static final long serialVersionUID = 1L;


}